package org.wd.db.jpa.dao;

import org.wd.db.jpa.dao.ifs.StationDAOIf;
import org.wd.db.jpa.dao.impls.StationDAOImpl;

public class DAOFactory {

	private static DAOFactory daoFactory;
	private static StationDAOIf stationDAO;

	private DAOFactory() {
	}

	public static DAOFactory getInstance() {
		if (daoFactory == null)
			daoFactory = new DAOFactory();
		return daoFactory;
	}

	public StationDAOIf getStationDAO() {
		if (stationDAO == null)
			stationDAO = new StationDAOImpl();
		return stationDAO;
	}
}
